package com.wing.factory.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.factory.model.entity.FacFactory;
import com.wing.factory.model.request.FacFactoryForm;
import com.wing.factory.model.response.FacFactoryVO;

import java.util.List;
import java.util.Map;

/**
 * 厂家表-Service
 *
 * @author
 */
public interface FacFactoryService extends IService<FacFactory> {

    /**
     * 添加
     *
     * @param facFactoryForm
     * @return
     */
    int add(FacFactoryForm facFactoryForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<FacFactoryVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<FacFactoryVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    FacFactoryVO get4appById(Long id);

    /**
     * 同步企查查查询到的企业信息
     * @param searchKey
     * @return
     */
    FacFactory getQccEnterpricceInfo(String searchKey);
}
